package com.example.sourcesprng.jdk17._sealed;

public record SealedInterface1(String name, int age) implements TestJDK17_Sealed_Interface {


    @Override
    public void say() {
        TestJDK17_Sealed_Interface.super.say();
    }

    @Override
    public void hello() {

    }

    public static void main(String[] args) {
        SealedInterface1 sealed1 = new SealedInterface1("张三", 18);
        sealed1.say();
    }
}
